package com.whfc.common.result;

public enum ResultEnum {

    UNKNOWN_ERROR("100", "未知错误"),

    SUCCESS("200", "成功"),

    PARAM_ERROR("400", "参数验证失败"),

    AUTHC_ERROR("401", "未认证"),

    TOKEN_EXPIRED("402", "登录已过期"),

    AUTHZ_ERROR("403", "未授权"),

    NOT_FOUND("404", "未找到相关资源"),

    NOT_BIND_PHONE("405", "未绑定手机号"),

    FAILURE("500", "服务器错误"),

    NETWORK_ERROR("501", "网络错误"),

    NETWORK_TIMEOUT("502", "网络超时");


    private String code;
    private String message;

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
